package com.atguigu.scala.chapter7

/**
 * @author lizikuan
 * @date 2021/5/22 13:44
 */
object $03_ImmutableList {
  def main(args: Array[String]): Unit = {
    val list = List(1, 23, 4, 5)
    val buffer = list.toBuffer
    buffer.+=(1)
    println(buffer)
    val list1 = 1 :: list
    println(list1)
  }
}
